{% import 'macros.html' as mymacros %}
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3>调拨单预览</h3>
</div>
<div class="modal-body">
    <div class="col-md-4">
            <h4>系统编号</h4><p>{{obj.no}}&nbsp;</p>
            <h4>从店铺</h4><p>{{obj.sShop}}&nbsp;</p>
            <h4>调拨到</h4><p>{{obj.dShop}}&nbsp;</p>
            <h4>送货单号</h4><p>{{obj.awb|f}}&nbsp;</p>
        </div>
        <div class="col-md-4">
            <h4>预计送达日期</h4><p>{{obj.expectDate|fd}}&nbsp;</p>
            <h4>经办人</h4><p>{{obj.createBy}}&nbsp;</p>
            <h4>开单时间</h4><p>{{obj.createTime|fd}}&nbsp;</p>
        </div>
        <div class="col-md-4">
            <h4>费用</h4><p>{{obj.fee}}&nbsp;</p>
            <h4>备注</h4><p>{{obj.remark|f}}&nbsp;</p>
            <h4>状态</h4><p>{{obj.status|ss(c='TNS')}}&nbsp;</p>                
        </div>
        <table class="table table-bordered">
            <thead>
                <tr>
                    <td width='202px'>商品编号/名称</td>
                    <td>所在仓位</td>
                    <td width='70px'>调拨数量</td>
                    <td>备注</td>
                </tr>
            </thead>
            <tbody>
                {% for dtl in obj.dtls %}
                    <tr>
                        <td>{{mymacros.render_goto_popup_pdt(dtl.pdt, loop.first)}} {{ dtl.pdtname }}</td>
                        <td>{{dtl.sIvtLtn}}</td>
                        <td>{{dtl.qty}}</td>
                        <td>{{dtl.remark|f}}</td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </fieldset>
</div>
<div class="modal-footer">
    <button type="button" data-dismiss="modal" class="btn btn-primary">{{BTN_CLOSE}}</button>
</div>